<template>
  <div>
    <van-card
      v-for="(item,index) in ary"
	  :key="index"
      :title="item.title"
      :thumb="item.tupian"
      @click="tiaozhuan(item.shangpinlujing)"
    >
    </van-card>
  </div>
</template>

<script>
export default {
  data() {
    return {
      ary: [],
    };
  },
  created() {
    this.ary = this.$route.query.userfavorites;
  },
  methods: {
    tiaozhuan(id) {
      this.$router.push({ path: `${id}` });
    },
  },
};
</script>

<style></style>
